/**
 * @author xu.yan
 * @time 2022-07-25 3 PM
 * @description 路由表的配置
 */

// 导入组件
import NotFound from '@/views/NotFound'
import Home from '@/views/Home'
import Login from '@/views/Login'
import Mine from '@/views/Mine'

const routes = [
  {
    path: '/',
    redirect: '/login',
  },
  {
    path: '/home',
    component: Home,
    meta: {
      title: '首页',
    },
  },
  {
    path: '/mine',
    component: Mine,
    meta: {
      title: '我的',
    },
  },
  {
    path: '/login',
    component: Login,
    meta: {
      title: '登录',
      nologin: true,
    },
  },
  {
    path: '*',
    component: NotFound,
    meta: {
      title: '404',
      nologin: true,
    },
  },
]

export default routes
